import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const store=new Vuex.Store({
    state:{
        userId:'',
        lnglat:[],
        routeListStore:{},
        password:'',
        isMore:true,
        changeSize:1,
        changeRefresh:1,
        allCollectDatas:[],
        changeTheme:1,
        isShowNotification:true,
        isNotifyShow:false
    },
    mutations:{
        setUserId(state,payload){
            state.userId=payload
        },
        setLnglat(state,payload){
            state.lnglat=payload
        },
        setRouteListStore(state,payload){
            state.routeListStore=payload
        },
        setPassword(state,payload){
            state.password=payload
        },
        setIsMore(state,payload){
            state.isMore=payload
        },
        setChangeSize(state,payload){
            state.changeSize=payload
        },
        setChangeRefresh(state,payload){
            state.changeRefresh=payload
        },
        setAllCollectDatas(state,payload){
            state.allCollectDatas=payload
        },
        setChangeTheme(state,payload){
            state.changeTheme=payload
        },
        setIsShowNotification(state,payload){
            state.isShowNotification=payload
        },
        setIsNotifyShow(state,payload){
            state.isNotifyShow=payload
        }
        
    }
})
export default store

